package com.iot.service;

import com.iot.pojo.MTrole;
import com.iot.pojo.MTrole_authority;

import java.util.List;
import java.util.Map;

public interface TroleService extends BaseService<MTrole> {

    List<Map<String, Object>> fetchByPage(Map<String, Object> map);

    Integer countData(Map<String, Object> map);

    /**
     * 根据roleId得到菜单
     *
     * @param roleId
     * @return
     */

    List<Map<String, String>> getAuthorityByRoleIdList(int roleId);

    void saveAuthority(List<MTrole_authority> list);

    void deleteRole(int id);
}
